const {
    Mysql
} = require('../tools/utils');
module.exports = async (ctx) => {
    let {
        uid
    } = ctx.query;
    try {
        let sql = `SELECT vid,uid,videoCover,isLike from collect WHERE uid = ${uid}`;
        let res = await Mysql(sql);
        ctx.state.data = {
            list: res,
            code: '001'
        }
    } catch (error) {}
}